package com.itao.springboot.bean;

import lombok.Data;

/**
 * @author sjt
 * @Date 2025/7/7 15:54
 */
@Data
public class R {

    private String error;
    private Object response;

    public R(String error, Object response) {
        this.error = error;
        this.response = response;
    }

    public static R ok(Object response) {
        return new R(null, response);
    }
}
